package datastructure.stack;

/**
 * @author XY
 * @version 1.0
 * @date 2021/8/31 15:21
 * @Description
 */
public class Main {
    public static void main(String[] args) {
        ArrayStack<Integer> stack = new ArrayStack<>();
        for (int i = 0; i < 5; i++) {
            stack.push(i);
        }
        System.out.println(stack);

        stack.pop();
        System.out.println(stack);
    }
}
